//配置路由表
import React from "react";

let Home =React.lazy(()=>import('../pages/home/Index'))
let Detail =React.lazy(()=>import('../pages/detail/Index'))
let DetailData =React.lazy(()=>import('../pages/detailData/Index'))


let routes=[
    {
        path:'/',
        element:<Home/>
    },
      {
        path:'/detail/:id',
        element:<Detail/>
    },
      {
        path:'/detailData',
        element:<DetailData/>
    }
]

export default routes